{extend name="../../admin/view/main"}
{block name="content"}
<div class="layui-badge layui-bg-cyan text-left notselect block shadow margin-0 padding-10 padding-left-20 border-radius-5 font-s15">
    报表统计：累计领用数量 <b>{$num}</b> 个；累计领用金额 <b>{$heji}</b> 元。
</div>
<div class="layui-tab layui-tab-card think-bg-white">
    <div class="layui-tab-content">
        {include file='control/claim_sheet/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-center nowrap'>物资单号</th>
            <th class='text-center nowrap'>用户单位</th>
            <th class='text-center nowrap'>物资编码</th>
            <th class='text-center nowrap'>名称</th>
            <th class='text-center nowrap'>规格</th>
            <th class='text-center nowrap'>单位</th>
            <th class='text-center nowrap'>单价</th>
            <th class='text-center nowrap'>数量</th>
            <th class='text-center nowrap'>金额</th>
            <th class='text-center nowrap'>领用时间</th>
            <!--<th class='text-right'></th>-->
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.material_code}' type='checkbox'></td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.plan_id|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.admin_name|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.material_code|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.material_name|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.material_model|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.material_unit|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.material_price|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.material_num|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.material_xjprice|default='--'}<br></div>
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block">{$vo.plan_time|date = 'Y-m-d H:i:s'}<br></div>
            </td>
            <!--<td class='text-left nowrap padding-0 relative'></td>-->
        </tr>
        {/foreach}
        </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
    <script>form.render()</script>
</div>
{/block}